Skip to content

refactor: consume the split comline-codegen crates - #19

Merged
Kinflou merged 1 commit into
mainfrom
refactor/comline-codegen-split
Sep 1, 2026
Merged

refactor: consume the split comline-codegen crates#19
Kinflou merged 1 commit into
mainfrom
refactor/comline-codegen-split

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 1, 2026

Copy link
Copy Markdown
Member

Follows generation#8comline-codelib-gen split into comline-codegen (contract + Registry) + comline-codegen-rust + comline-codegen-typescript.

  • Cargo.toml — one generation git dep becomes three, all pinned to generation master 8ff03d7. One comline-core in the tree still (aa84d970).
  • generate.rsgenerator_registry() builds a Registry at startup by calling each per-language crate's register(&mut Registry); code_gen::find_generator(...)registry.find(...).
  • clean.rs — reuses generator_registry().

Feature-gating which generators get registered is rollout step 6; here both are always on.

No behaviour change. Local: builds clean, 36 + 2 tests pass, cargo fmt --check clean.

Follows generation's split (comline-codelib-gen -> comline-codegen +
comline-codegen-rust + comline-codegen-typescript).

- Cargo.toml: one git dep -> three.
- generate.rs: build a Registry at startup from the per-language crates
  (generator_registry()); code_gen::find_generator -> registry.find.
- clean.rs: same registry, reused.

The feature-gating of the registered set is rollout step 6; here both
generators are always registered. Build clean; 36 + 2 tests pass; fmt clean.
@Kinflou
Kinflou merged commit 8014731 into main Sep 1, 2026
2 checks passed
@Kinflou
Kinflou deleted the refactor/comline-codegen-split branch September 1, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant